export class ResponseUtil {
  success<T>(data?: T, msg: string = '操作成功') {
    return {
      code: 200,
      msg,
      data,
    };
  }

  error(msg: string = '操作失败', code: number = 500) {
    return {
      code,
      msg,
    };
  }
}
